home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
windows
/
editprog
/
we_30x.arj
/
TOOLBAR.WB_
< prev
next >
Wrap
Text File
|
1994-05-20
|
1KB
|
40 lines
; TOOLBAR.WBT
;
;
; This sample demonstrates customizing the WinEdit toolbar
;
; First, we'll remove the five programming buttons. Then
; move the cut, copy, and paste buttons to the end of the toolbar.
; Finally, we'll add a button which calls some WIL script contained
; in WWWEDIT.DLL
;
; wDelButton takes two parameters, the 0-based position of the button
; on the toolbar, and the command tied to that button
;
; Note that as we delete buttons in a group, the remaining buttons
; move up in position, so we delete position 13 each time.
; Uncomment this DEBUG line if you want to step through the processing
; DEBUG(1)
wDelButton(13,@wRunCompile)
wDelButton(13,@wRunMake)
wDelButton(13,@wRunRebuild)
wDelButton(13,@wRunDebug)
wDelButton(13,@wRunExecute)
; To move the editing buttons, we will first remove them, then
; add them back on in their new position
wDelButton(7,@wEdCut)
wDelButton(7,@wEdCopy)
wDelButton(7,@wEdPaste)
wAddButton(@CUTICON,@wEdCut,13)
wAddButton(@COPYICON,@wEdCopy,14)
wAddButton(@PASTEICON,@wEdPaste,15)
; Finally, let's add a button which calls some custom code in WWWEDIT.DLL
; The predefined identifier @wCall1 will generate a call statement of
; 'Call("WWWEDIT.DLL","BUTTONMACRO 1")'. See the WWWEDIT.DLL file for
; an example.
wAddButton(@MAKEICON,@wCall1,17)